home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10842 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  42 lines

  1. Newsgroups: comp.lang.c
  2. Path: cnn.nas.nasa.gov!eos!jim-ra
  3. From: jim-ra@eos.arc.nasa.gov (Jim Stevenson's reader)
  4. Subject: Re: assembly code in c ?
  5. Message-ID: <1996Mar19.232856.20552@eos.arc.nasa.gov>
  6. Organization: NASA Ames Research Center
  7. References: <314C6E40.5111@cs.concordia.ca> <4ii5cn$ab3@msunews.cl.msu.edu>
  8. Distribution: usa
  9. Date: Tue, 19 Mar 1996 23:28:56 GMT
  10.  
  11. eisenbe4@pilot.msu.edu (eisenbe4@pilot.msu.edu) writes:
  12.  
  13. >"Aaron H. Chu" <chuhc@cs.concordia.ca> wrote:
  14.  
  15. >>Dear netters,
  16.  
  17. >>I would like to know whether it is possble to embed assembly
  18. >>codes in a c program.
  19. > Yes you can program ASM into C.  Its called in-line assemble
  20.  
  21. >>What about the problems when writing codes on different
  22. >>platforms ?
  23.     BIG PROBLEMS.  Much of the in-line assembler won't be compatible
  24. on machines using other OS's (== platforms  rite?  ;)
  25.  
  26.  
  27.   Do I need to know the register sets well
  28. >>before I attempt to write the program ?
  29.     It REALLY depends on HOW MANY lines of assembly code (  ie: are
  30. you just haveing very short assembly routines that massage a few
  31. variables with like XOR's and BIT shifts OR are you writng a few kilo
  32. bytes )
  33.  
  34.  
  35. >>Replies should direct to me and suggestios are welcomed
  36.  
  37. >>Thanks in advance
  38.  
  39. >>Aaron
  40.  
  41.  
  42.